#ifndef _APP_TFTP_H_
#define _APP_TFTP_H_
#include "stm32l0xx_hal.h"
#include "string.h"

typedef struct _tftp_req_t {
  uint16_t opcode;
  uint16_t len;    
  uint8_t  pdu[];
} tftp_req_t;

typedef enum {
  tftp_ok = 0x00,
  tftp_error,
}TFTP_Status_t;

typedef enum {
  tftp_ota_img = 0x00,
}tftp_states;

/*private functions*/
void app_tftp_req_file(tftp_req_t* data);
void tftp_server_ack_callback(void);
#endif //_APP_TFTP_H_


